package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.query.ObjectQuery;
import cn.wolfcode.crm.query.PageResult;

import java.util.List;


public interface IRoleService {
    void save(Role role, Long[] permissionIds,Long[] menus);

    void delete(Long id);

    void update(Role role, Long[] permissionIds,Long[] menus);

    Role get(Long id);

    List<Role> getAll();


    PageResult<Role> query(ObjectQuery qo);


    List<Long> queryRoleIdsByEmpId(Long empId);

    List<String> queryRoleSnByEmpId(Long id);
}
